import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

data = pd.read_csv('./LHY-class/class_1/train.csv',encoding='big5')
data = data.iloc[:,3:]
X = pd.DataFrame(np.ones((12 * 20 * 24,2)))
for i in range(12 * 20):
    X.iloc[i * 24:i * 24 + 24,1] = data.iloc[i * 18 + 8,:]
print(X)
y = pd.DataFrame(np.zeros((12 * 20 * 24,1)))
poslist = []
for i in range(12 * 20):
    y.iloc[i * 24:i * 24 + 24,0] = data.iloc[i * 18 + 9,:]
print(X.iloc[:,1].to_numpy(dtype = int))
print(y.to_numpy(dtype=int))
X = X.T.to_numpy(dtype=int)
y = y.T.to_numpy(dtype=int)
print(X)
print(y)